﻿using MongoDB.Bson;
using MongoDB.Driver;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace bonus.Controllers
{
	public class UsersController : Controller
	{
		/// <summary>
		/// 后台用户列表
		/// </summary>
		/// <returns></returns>
		public ActionResult Index(string key)
		{

			Repository.Repository tool = new Repository.Repository();

			var result = tool.GetMany<Models.User>(new BsonDocument(),"AddDT:-1");

			return View(result);

		}


	}
}